package com.mys.maggie.redisbannademo.web;

import com.mys.maggie.redis.api.spring.MagRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    
    @Autowired
    @Lazy
    MagRedisService testRedis;
    
    @RequestMapping("/redis")
    private String redis() {
        return testRedis.get("1");
    }
}
